import 'package:flutter/material.dart';
import 'routes/routes.dart';

void main(List<String> args) {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '我的',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(
            seedColor: const Color.fromARGB(255, 255, 2, 2)),
        appBarTheme: const AppBarTheme(
          centerTitle: true, // 设置标题居中
        ),
        useMaterial3: true,
      ),
      // 初始路由
      initialRoute: "/",
      // 定义路由跳转逻辑
      onGenerateRoute: myOnGenerateRoute,
    );
  }
}
